projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf42581
)
(regex_compile): Fix previous change.
author
Kenichi Handa
<handa@m17n.org>
Thu, 30 Nov 2006 01:52:26 +0000
(
01:52
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 30 Nov 2006 01:52:26 +0000
(
01:52
+0000)
src/regex.c
patch
|
blob
|
history
diff --git
a/src/regex.c
b/src/regex.c
index 0e15c5eaf441d9d91d3d53d48e0858162c970651..c0dd6e00ffcd6518a6955936234927712b8f02b9 100644
(file)
--- a/
src/regex.c
+++ b/
src/regex.c
@@
-3021,7
+3021,14
@@
regex_compile (pattern, size, syntax, bufp)
{
for (this_char = range_start; this_char <= range_end;
this_char++)
- SET_LIST_BIT (TRANSLATE (this_char));
+ {
+ int translated = TRANSLATE (this_char);
+ if (translated < (1 << BYTEWIDTH))
+ SET_LIST_BIT (translated);
+ else
+ SET_RANGE_TABLE_WORK_AREA
+ (range_table_work, translated, translated);
+ }
}
}
else